var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk_Bottom("喂？弗朗西斯？ ", 56, 1530140, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk_Bottom("May Day！May Day！Bravo！Charlie #ho#！！我现在在神兽国际学校旧楼吱吱吱吱~可怕的精灵~救我~吱吱吱吱~！！", 37, 1530140, true, true)
            } else {
                if (status === a++) {
                    qm.sendNormalTalk_Bottom("不要发出那种怪声，好好说话！", 56, 1530140, true, true)
                } else {
                    if (status === a++) {
                        qm.sendNormalTalk_Bottom("…………", 37, 1530140, true, true)
                    } else {
                        if (status === a++) {
                            qm.sendNormalTalk_Bottom("弗朗西斯？！弗朗西斯！！", 56, 1530140, true, true)
                        } else {
                            if (status === a++) {
                                qm.sendNormalTalk_Bottom("电话挂断了……他好像说了神兽国际学校旧楼？究竟发生了什么事情呢？快去看看吧。", 56, 1530140, true, true)
                            } else {
                                if (status === a++) {
                                    qm.updateInfoQuest(32720, "sms=201");
                                    qm.forceStartQuest(33105, "");
                                    qm.dispose()
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk_Bottom("有一点……帅气吧？", 37, 1530040, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk_Bottom("总之，这次也辛苦你了。", 37, 1530040, true, true)
            } else {
                if (status === a++) {
                    qm.sendNormalTalk_Bottom("嗯……我要给你蕴含着所有回忆的礼物。", 37, 1530040, true, true)
                } else {
                    if (status === a++) {
                        qm.forceCompleteQuest(33530);
                        qm.finishAchievement(1211);
                        qm.forceCompleteQuest(33533);
                        qm.forceCompleteQuest(33536);
                        qm.updateInfoQuest(32720, "sms=199");
                        qm.updateInfoQuest(32719, "sms=1;gal=1;add=0");
                        qm.forceCompleteQuest(33527);
                        qm.gainItem(4310125, 2);
                        qm.gainItem(3015119, 1);
                        qm.dispose()
                    }
                }
            }
        }
    }
};